<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@include file="/context/mytags.jsp"%>
<t:base type="jquery,easyui,tools,DatePicker"></t:base>
<div id="system_territory_territoryList" class="easyui-layout" fit="true">
<div region="center" style="padding: 1px;">
	<t:datagrid name="chooseTerritoryList" checkbox="false" fitColumns="false" title="地域" treegrid="true" pagination="false" onDblClick="dbClick"
		actionUrl="territoryController.do?chooseTerritoryForEsList" idField="id" fit="true" queryMode="single">
		   <t:dgCol title="主键"  field="id"  hidden="true" treefield="id"	 width="120"></t:dgCol>
		   <t:dgCol title="地域名称"  field="territoryName" 	treefield="text"	width="500"></t:dgCol>
	</t:datagrid>
</div>
</div>
<script type="text/javascript">
function dbClick(node){
	if(!node.hasLeaf){
		$("#tsTerritoryId",top.myWindow.document).val(node.id);
		$("#tsTerritoryName",top.myWindow.document).val(node.text);
		frameElement.api.close();
	}else{
		tip("请选择市");
	}
}
</script>

